<template>
  <div>
      <!-- 标题/返回按钮  专题详情页面-->
      <div class="barg_header">
        <div class="barg_header_icon">
          <img src="navtopIcon/back.png" @click="goHome">
        </div>
        <div class="barg_header_title">专栏详情</div>
      </div>
      <!-- 详情 -->
      <div class="barg_title">{{detailList.title}}</div>
      <div class="barg_img">
        <img :src="detailList.pic" alt="">
      </div>
      <div class="barg_text" v-html="detailList.content">
        <img :src="detailList.pic" alt="">
      </div>
  </div>
</template>

<script>
export default {
  data(){
    return {
      detailList:[]
    }
  },
  mounted(){
    let id = this.$route.query.id
    this.$CLIENT.seletedDetail({params:{id:id}}).then(res => {
        this.detailList = res.data.data
	})
  },
  methods:{
    goHome(){
      this.$router.goBack()
    }
  }
}
</script>

<style scoped>
.barg_header
{
  width: 100%;
  height: 50px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  background-color: #fff;
  top: 0;
  bottom: 0;
}

.barg_header_icon
{
  width: 10%;
  height: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.barg_header_icon img
{
  width: 24px;
  height: 24px;
}

.barg_header_title
{
  width: 90%;
  height: 100%;
  text-align: center;
  line-height: 50px;
  font-size: 15px;
  margin-top: 30px;
}

.barg_title
{
  width: 100%;
  height: 80px;
  /* border: 1px solid #000; */
  text-align: center;
  line-height: 80px;
}

.barg_img
{
  width: 90%;
  height: 200px;
  margin: 0 auto;
}

.barg_img img
{
  width: 100%;
  height: 100%;
}

.barg_text
{
  width: 100%;
  padding: 0 5px;
  box-sizing: border-box;
  font-size: 15px;
}
</style>